package com.qingchunlin.blogsystem.mapper;

import com.qingchunlin.blogsystem.entity.Blog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BlogMapper {
    List<Blog> getBlogList();

    Blog getBlogDetail(Integer blogId);

    void insertBlog(@Param("blog") Blog blog);

    Integer updateBlog(Blog blog);

    Integer deleteBlog(Integer blogId);
}
